package com.spzx.product.api.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 商品分类数据传输类 CategoryDto
 *
 * @author gaozz
 */
@Data
public class CategoryDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "商品id")
    private Long id;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "商品url")
    private String imageUrl;

    @Schema(description = "商品父id")
    private Long parentId;

    @Schema(description = "节点子集合")
    private List<CategoryDto> children;
}
